package org.openea.eap.module.obpm.util.form.tableexcel;

import org.openbpm.base.core.util.AppUtil;
import org.openbpm.bus.api.model.IBusinessColumn;

import java.util.List;














public class BusinessColumnExcellorFactory
{
  public static BusinessColumnExcellor get(IBusinessColumn column) {
    List<BusinessColumnExcellor> es = AppUtil.getImplInstanceArray(BusinessColumnExcellor.class);
    for (BusinessColumnExcellor e : es) {
      if (e.getCtrlType().equalsWithKey(column.getCtrl().getType())) {
        return e;
      }
    }
    return null;
  }
}
